package com.ky.gp.app.service;


import com.baomidou.mybatisplus.extension.api.R;
import com.ky.common.param.CircleArticleAdd;
import com.ky.gp.app.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "gp-circle-server", configuration = OpenFeignConfig.class)
public interface CircleArticleFeign {
    @RequestMapping("/circle/selectAll")
    R selectAll();

    @RequestMapping("/circle/selectTypeId")
    R selectTypeId();


    @RequestMapping("/circle/selectById/{id}")
    R selectById(@PathVariable("id") Integer id);

    @RequestMapping("/circle/addPraises/{id}")
    R addPraises(@PathVariable("id") int id);

    @RequestMapping("/circle/addCollect/{id}")
    R addCollect(@PathVariable("id") int id);

    @RequestMapping("/circle/addReview")
    R addReview(int id);

    @RequestMapping("/praises/praises/{id}/praises")
    R praises(@PathVariable("id") int id);

    @RequestMapping("/circle/collect/{id}/collect")
    R collect(@PathVariable("id") int id);

    @RequestMapping("/circle/addCircleArticle")
    R addCircleArticle(@RequestBody CircleArticleAdd circleArticleAdd);

}
